﻿using System.Data.Entity.ModelConfiguration;

namespace Home.Domain.Entities.Mapping
{
    public class NewsMap : EntityTypeConfiguration<News>
    {
        public NewsMap()
        { 
            //属性
            Property(t => t.Title)
                .IsRequired()
                .HasMaxLength(64);
        }
    }
}
